var HTMLImageElement = function HTMLImageElement() {
    //如果不能new  要抛出一个错误
    throw new TypeError("Illegal constructor");
}//构造函数
catvm.safefunction(HTMLImageElement); //tostring 保护
//设置原型链上显示的名字***************************************************************************
Object.defineProperties(HTMLImageElement.prototype, {
    [Symbol.toStringTag]: {
        value: "HTMLImageElement",
        configurable: true
    }
});
// 原型指向原型父亲***************************************************************************
HTMLImageElement.prototype.__proto__ = HTMLElement.prototype


//添加div标签
catvm.memory.htmlelements['img'] = function (o) {
    var img = new (function () {
    });
    img.getElementsByTagName = function (e) {
        catvm.debugger_()
        return []
    }
    img.catvm_index = (catvm.domele[catvm.domele.length - 1].catvm_index) + 1
    if (o !== undefined) {
        img.align = o?.align;
        img.id = o?.id;
        img["data-translate"] = (o['data-translate'] === undefined ? "" : o['data-translate']);
        img.class = o?.class;
        img.width = o?.width
        img.height = o?.height
    }
    img.__proto__ = HTMLImageElement.prototype;
    img.style = o?.style === undefined ? {} : o.style
    catvm.domele.push(img)
    return catvm.proxy(img)
}
HTMLImageElement = catvm.proxy(HTMLImageElement)